using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._UtilityNetworkTools
{
    /// <summary>
    /// <para>Apply Partial Overlapping Edges Layout</para>
    /// <para>Apply the partial overlapping edges to a diagram</para>
    /// <para>将部分重叠边应用于关系图</para>
    /// </summary>    
    [DisplayName("Apply Partial Overlapping Edges Layout")]
    public class ApplyPartialOverlappingEdgesLayout : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public ApplyPartialOverlappingEdgesLayout()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_network_diagram_layer">
        /// <para>Input Network Diagram Layer</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        /// <param name="_buffer_width_absolute">
        /// <para>Buffer Width</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        /// <param name="_offset_absolute">
        /// <para>Offset</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        public ApplyPartialOverlappingEdgesLayout(object _in_network_diagram_layer, string? _buffer_width_absolute, string? _offset_absolute)
        {
            this._in_network_diagram_layer = _in_network_diagram_layer;
            this._buffer_width_absolute = _buffer_width_absolute;
            this._offset_absolute = _offset_absolute;
        }
        public override string ToolboxName => "Utility Network Tools";

        public override string ToolName => "Apply Partial Overlapping Edges Layout";

        public override string CallName => "un.ApplyPartialOverlappingEdgesLayout";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_network_diagram_layer, _buffer_width_absolute, _offset_absolute, _optimize_edges.GetGPValue(), _out_network_diagram_layer, _run_async.GetGPValue()];

        /// <summary>
        /// <para>Input Network Diagram Layer</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Network Diagram Layer")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_network_diagram_layer { get; set; }


        /// <summary>
        /// <para>Buffer Width</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Buffer Width")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public string? _buffer_width_absolute { get; set; }


        /// <summary>
        /// <para>Offset</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Offset")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public string? _offset_absolute { get; set; }


        /// <summary>
        /// <para>Optimize edges</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Optimize edges")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _optimize_edges_value _optimize_edges { get; set; } = _optimize_edges_value._false;

        public enum _optimize_edges_value
        {
            /// <summary>
            /// <para>OPTIMIZE_EDGES</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("OPTIMIZE_EDGES")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>DO_NOT_OPTIMIZE_EDGES</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("DO_NOT_OPTIMIZE_EDGES")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Output Network Diagram</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Network Diagram")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_network_diagram_layer { get; set; }


        /// <summary>
        /// <para>Run in asynchronous mode on the server</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Run in asynchronous mode on the server")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _run_async_value _run_async { get; set; } = _run_async_value._false;

        public enum _run_async_value
        {
            /// <summary>
            /// <para>RUN_ASYNCHRONOUSLY</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("RUN_ASYNCHRONOUSLY")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>RUN_SYNCHRONOUSLY</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("RUN_SYNCHRONOUSLY")]
            [GPEnumValue("false")]
            _false,

        }

        public ApplyPartialOverlappingEdgesLayout SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}